package day10;

import day9.Account;

import java.lang.reflect.Array;
import java.util.Arrays;

/**
 * @author oldliu
 * @since 1.0
 */
public class ArrTEst {
    public static void main(String[] args) {
        //长度20的Double数组
        Object o = Array.newInstance(double.class, 20);
        Array.setDouble(o,0,4.5);
        Array.setDouble(o,1,2.5);
        double aDouble = Array.getDouble(o, 1);
        System.out.println(aDouble);
        double []d= (double[]) o;
        System.out.println(Arrays.toString(d));
    }
}
